export function getAssetsForHolder(body: any) {
    const data: any = [];
    let total = 0;
    
    if ('PERMIT' === body.assetType) {
        if ('1' === body.assetId) {
                    if ('USER' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: 'licode',
                        });
                        data.push({
                            id: '2',
                            name: 'wangrong',
                        });
                    } else if ('GROUP' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: '人事部',
                        });
                        data.push({
                            id: '2',
                            name: '市场部',
                        });
                    } else if ('ROLE' === body.holdType) {
                        total = 1;
                        data.push({
                            id: '1',
                            name: '工程师',
                            code: 'eng'
                        });
                    } else if ('CLIENT' === body.holdType) {
                        total = 1;
                        data.push({
                            id: '1',
                            name: '小程序APP',
                        });
                    }
                } else if ('2' === body.assetId) {
                    if ('GROUP' === body.holdType) {
                        total = 1;
                        data.push({
                            id: '2',
                            name: '市场部',
                        });
                    }
                }
            } else if ('ROLE' === body.assetType) {
                if ('1' === body.assetId) {
                    if ('USER' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: 'licode',
                        });
                        data.push({
                            id: '2',
                            name: 'wangrong',
                        });
                    } else if ('GROUP' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: '人事部',
                        });
                        data.push({
                            id: '2',
                            name: '市场部',
                        });
                    }
                }
            } else if ('MENU' === body.assetType) {
                if ('1' === body.assetId) {
                    if ('USER' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: 'licode',
                        });
                        data.push({
                            id: '2',
                            name: 'wangrong',
                        });
                    } else if ('GROUP' === body.holdType) {
                        total = 2;
                        data.push({
                            id: '1',
                            name: '人事部',
                        });
                        data.push({
                            id: '2',
                            name: '市场部',
                        });
                    }
                }
            }
            return data;
        
}